
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <div class="post">

        <h2 class="title">Relação de Alunos</h2>

        <h:panelGroup id="painelMensagens" layout="block">
            <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
        </h:panelGroup>


    </div>
    <p>
    <h:form id="form2">

        <p:dataTable var="arq" value="#{ArquivoControllerSearch.arquivos}" emptyMessage="Nenhum Arquivo Encontrado" paginator="true" rows="10"
     paginatorTemplate="{FirstPageLink}{PreviousPageLink} {PageLinks}{NextPageLink} {LastPageLink}”{RowsPerPageDropdown}"
     rowsPerPageTemplate="10,20,30,40"
     previousPageLinkLabel="ANTERIO"  nextPageLinkLabel="PROXIMO" firstPageLinkLabel="PRIMEIRO" lastPageLinkLabel="ULTIMO">
            <p:column sortBy="#{arq.id}">
                <f:facet name="header">
                    <h:outputText value="Número" />
                </f:facet>
                <h:commandLink action="#{ArquivoController.load}" value="#{arq.id}" />
            </p:column>

            <p:column sortBy="#{arq.ra}">
                <f:facet name="header">
                    <h:outputText value="RA" />
                </f:facet>
                <h:outputText value="#{arq.ra}" />
            </p:column>

            <p:column sortBy="#{arq.aluno}">
                <f:facet name="header">
                    <h:outputText value="Aluno" />
                </f:facet>
                <h:outputText value="#{arq.aluno}" />
            </p:column>

            <p:column sortBy="#{arq.curso.sigla}">
                <f:facet name="header">
                    <h:outputText value="Curso" />
                </f:facet>
                <h:outputText value="#{arq.curso.sigla}" />
            </p:column>

            <p:column sortBy="#{arq.caixa}">
                <f:facet name="header">
                    <h:outputText value="Caixa" />
                </f:facet>
                <h:outputText value="#{arq.caixa}" />
            </p:column>
            <p:column sortBy="#{arq.armario}">
                <f:facet name="header">
                    <h:outputText value="Armário" />
                </f:facet>
                <h:outputText value="#{arq.armario}" />
            </p:column>

        </p:dataTable>
    </h:form>
</p>
</html>
